var express = require("express");
var router = express.Router();
const { getStatistics2 } = require("../service/totalStatisticsService");
//获取所有统计
router.get("/", async function(req, res, next) {
	const type = req.query.type;
	const data = await getStatistics2(type);
	console.log(data);
	res.send(data);
});
module.exports = router;
